Skip to content

Fix duplicate menu entries in Available Functions for URI-based sources#765

Open
sperrault wants to merge 1 commit intomcneel:8.xfrom
echoesparis:fix/hops-menu-grouping-duplicates
Open

Fix duplicate menu entries in Available Functions for URI-based sources#765
sperrault wants to merge 1 commit intomcneel:8.xfrom
echoesparis:fix/hops-menu-grouping-duplicates

Conversation

@sperrault
Copy link
Copy Markdown

When multiple components share a common URI path prefix (e.g., /prefix/component_1, /prefix/component_2, /prefix/component_3), each component would create a separate parent menu entry instead of grouping them under a single parent.

This fix checks if a parent path already exists in the Paths collection before creating a new one, ensuring components with shared prefixes are properly grouped under a single submenu.

Fixes #363

Related discussion: https://discourse.mcneel.com/t/grouping-hops-components-in-available-functions/195331

When multiple components share a common URI path prefix (e.g., /seaborn/relplot,
/seaborn/catplot, /seaborn/boxplot), each component would create a separate
parent menu entry instead of grouping them under a single parent.

This fix checks if a parent path already exists in the Paths collection before
creating a new one, ensuring components with shared prefixes are properly grouped
under a single submenu.

Fixes mcneel#363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop-down available functions

1 participant